package com.example.supplychainbackend.entity.plan;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.*;

@Entity
@Table(name = "plan_material")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MaterialInfoEntity {
    Integer kitStatus;

    @Id
    String materialCode;

    String materialName;
    String materialDesc;
    String unit;
    String mrpType;
    Integer issueType;
    String consumptionWarehouse;
    String consumptionLocation;
    String workOrderDemand;
    String unitDemand;
    Integer receivedQuantity;
    Integer consumedQuantity;
    Integer unreceivedQuantity;
    Integer availableQuantity;
    Integer shortageQuantity;
    String demandDate;
    boolean allowExcessIssue;
    String plannedArrivalDate;
    String actualArrivalDate;
    String shortageRemarks;
    String remarks;

    Integer requiredQuantity;
    Integer shortageStatus;
}
